"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    /**
     * Add seed commands here.
     *
     * Example:
     * await queryInterface.bulkInsert('People', [{
     *   name: 'John Doe',
     *   isBetaMember: false
     * }], {});
     */
    await queryInterface.bulkInsert(
      "Chinamaps",
      [
        {
          name: "北京市",
          value: 5320,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "上海市",
          value: 4820,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "广东省",
          value: 8910,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "江苏省",
          value: 7230,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "浙江省",
          value: 6340,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "山东省",
          value: 5430,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "河南省",
          value: 4900,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "河北省",
          value: 4780,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "湖南省",
          value: 4560,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "湖北省",
          value: 4440,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "天津市",
          value: 4330,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "江西省",
          value: 4220,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "福建省",
          value: 4110,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "重庆市",
          value: 4450,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "四川省",
          value: 4320,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "云南省",
          value: 4210,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "辽宁省",
          value: 4100,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "贵州省",
          value: 4000,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "陕西省",
          value: 3980,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "山西省",
          value: 3870,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "海南省",
          value: 3760,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "吉林省",
          value: 3760,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "黑龙江省",
          value: 3650,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "安徽省",
          value: 3540,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "甘肃省",
          value: 3430,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "青海省",
          value: 3320,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "台湾省",
          value: 3210,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "内蒙古自治区",
          value: 3100,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "广西壮族自治区",
          value: 2990,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "西藏自治区",
          value: 2880,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "宁夏回族自治区",
          value: 2770,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "新疆维吾尔自治区",
          value: 2660,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "香港特别行政区",
          value: 2550,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: "澳门特别行政区",
          value: 2440,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
    await queryInterface.bulkDelete("Chinamaps", null, {});
  },
};
